package com.eleadmin.common.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eleadmin.common.core.web.PageResult;
import com.eleadmin.common.system.entity.Homestay;
import com.eleadmin.common.system.param.HomestayParam;

import java.util.List;

/**
 * Service
 *
 * @author EleAdmin
 * @since 2024-03-01 22:02:39
 */
public interface HomestayService extends IService<Homestay> {

    /**
     * 分页关联查询
     *
     * @param param 查询参数
     * @return PageResult<Homestay>
     */
    PageResult<Homestay> pageRel(HomestayParam param);

    /**
     * 关联查询全部
     *
     * @param param 查询参数
     * @return List<Homestay>
     */
    List<Homestay> listRel(HomestayParam param);

    /**
     * 根据id查询
     *
     * @param id 
     * @return Homestay
     */
    Homestay getByIdRel(Integer id);

}
